#include <bits/stdc++.h>
using namespace std;
int n, t, dp[10000005], a[100000005];
int main() {
  cin >> n >> t;
  for (int i = 1; i <= n; i++)
    cin >> a[i];
  dp[0] = 1;
  for (int i = 1; i <= n; i++) {
    for (int j = t; j >= a[i]; j--) {
      dp[j] += dp[j - a[i]];
    }
  }
  if (dp[t] > 0) {
    cout << "Yes";
  } else {
    cout << "No";
  }
  return 0;
}